//
// 嗨~ o(*￣▽￣*)ブ
// Created by Mokou on 2020/9/22.
//

@interface ElecUpgrade : NSObject

@property (nonatomic, copy) NSString *box_sn;
@property (nonatomic, copy) NSString *user_id;
@property (nonatomic, copy) NSString *md5;
@property (nonatomic, copy) NSString *version;
@property (nonatomic, copy) NSString *url;
@property (nonatomic, copy) NSString *local_path;

- (instancetype)init:(NSDictionary *)data;
- (NSDictionary *)getDict;

+ (NSDictionary *)create:(NSDictionary *)data;
+ (BOOL)clear:(NSDictionary *)data;
+ (BOOL)delete:(NSDictionary *)data;
+ (NSDictionary *)download:(NSDictionary *)data;
+ (NSDictionary *)update:(NSDictionary *)data;
+ (NSString *)get_cache_file;
+ (void)delete_cache_file:(NSString *)cachePath;
+ (NSDictionary *)device_upgrade_query:(NSDictionary *)data;
@end